﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CnEnMapping_Add.aspx.cs" Inherits="admin_UKNOW_CnEnMapping_Add" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../css/default.css" rel="stylesheet" type="text/css" />
    <script language="javascript">
    <!--
        function checkForm() {
            var srcLang = document.getElementById("SourceEventLangID").value;
            var srcEvent = document.getElementById("SourceEventID").value;
            var destLang = document.getElementById("ToEventLangID").value;
            var destEvent = document.getElementById("ToEventID").value;

            if (srcLang == "") {
                alert("请选择源活动语言类型");
                return false;
            }

            if (srcEvent == "") {
                alert("请选择源活动ID");
                return false;
            }

            if (destLang == "") {
                alert("请选择目标活动语言类型");
                return false;
            }

            if (destEvent == "") {
                alert("请选择目标活动ID");
                return false;
            }

            return true;
        }
    //-->
    </script>
    <script type="text/javascript">
        function closeWindow() {
            if (confirm("您确定关闭该对话框吗?"))
                window.self.close();
        }
    </script>
</head>
<body>
    <form id="mainForm" method="post" runat="server">
    <div>
    <table width="100%" border="0" align="center" cellspacing="0" cellpadding="0">
            <tr bgcolor="#2583BC">
                <th align="left">
                    中英文映射
                </th>
            </tr>
        </table>
        <table width="100%" height="400" border="1" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
            <tr>
                <td height="414" align="left" valign="top" class="rightbg">
                    <table width="100%" border="0" align="center" style="border: solid 1px #99C;">
                        
                        <%--<tr><td class="style1" height="33">从活动:</td></tr>--%>
                        <tr>
                            <td class="style5">映射原语言:</td>
                            <td class="style5"><asp:DropDownList runat="server" ID="SourceEventLangID" Enabled="false"
                                    Width="98%" AutoPostBack="true">
                                                <%--<asp:ListItem Text="--请选择语言类型--" Value="" />--%>
                                               <asp:ListItem Text="中文" Value="2052" />
                                               <%--<asp:ListItem Text="英文" Value="1033" />--%>
                                               </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style4">活动名称</td>
                            <td width="90%"><asp:DropDownList runat="server" ID="SourceEventName" Width="98%"  AutoPostBack="false"></asp:DropDownList></td>
                        </tr>
                        <%--<tr><td class="style1" height="33">同步到活动:</td></tr>--%>
                        <tr>
                            <td class="style4">映射到语言:</td>
                            <td width="90%">
                                <asp:DropDownList runat="server" ID="ToEventLangID" Width="98%" Enabled="false" AutoPostBack="true">
                                                <%--<asp:ListItem Text="--请选择语言类型--" Value="" />
                                                <asp:ListItem Text="中文" Value="2052" />--%>
                                                <asp:ListItem Text="英文" Value="1033" />
                                            </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style4">活动名称</td>
                            <td width="90%"><asp:DropDownList runat="server" ID="ToEventName" Width="98%" AutoPostBack="false"></asp:DropDownList></td>
                        </tr>
                        <tr>
                            <td class="style4"><asp:Button Text="确定" ID="btnSync" OnClientClick="" runat="server" OnClick="btnSync_click" /></td> 
                            <td class="style4"><input type="button" value="关闭" onclick="javascript:closeWindow();" /></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>    
    </div>
    </form>
</body>
</html>
